<%@ page language="java" contentType="text/html"
	import="com.rw.table.Address" import="java.util.List"
	import="com.rw.table.Item" import="java.util.Iterator"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>Insert title here</title>
</head>
<body>

插入新地址项
	<form id="login" method="post" action="addUserAdsAction">
		<input type="text" name="userId" value="1">
		<input type="text"	name="password" value="密码">
		<input type="text"	name="adsDetail" value="订单详细"> 
		<input type="text"	name="receiver" value="收件人"> 
		<input type="text"	name="AddressPhone" value="电话号码"> 
		<input type="text"	name="postCode" value="邮政编码"> 
		<input type="text" name="belong"> 
		<input type="submit" value="提交提交">
	</form>
删除已有地址项
	<form id="form1" method="post" >
	
		<input type="text" name="userId" value="1">
		<br> 
		<%
			List<Address> addressList = (List<Address>) request.getAttribute("addressList");
			Iterator<Address> iterator = addressList.iterator();
			while (iterator.hasNext()) {
				Address address = iterator.next();
				Long addressId = address.getAddressId();
		%>
		<a>ID=<%=addressId %> 内容= <%=address.getAddressDetail()%>
			<input type="radio" name="addressId"
			value="<%=address.getAddressId()%>" title="類别1"> </a>
			 <input	type="submit" value="删除" onclick="form1.action='deleteUserAdsAction';">
			 <input	type="submit" value="修改"
			  onclick=<%= "form1.action='listModifyUserAdsAction';"%> >
			  
			<br> 
		<%
			}
		%>
		
	</form>

</body>
</html>